'use strict';

const Controller = require('egg').Controller;

class configJsonController extends Controller {
  async setConfigJson() {
    const { ctx } = this;
    ctx.body = await ctx.service.configJson.setConfigJson(ctx.request.body);
  }
  async getConfigJson() {
    const { ctx } = this;
    ctx.body = await ctx.service.configJson.getConfigJson(ctx.request.body);
  }
}

module.exports = configJsonController;
